<template>
    <div>
        <hr>
        <h1>儿子</h1>
        <textarea cols="20" rows="1" v-model="mymsg" style="font-size:20px">

        </textarea>
        <button @click="commit">收到!</button>
    </div>
</template>

<script>
export default {
    props: ['msg'],
    data() {
        return {
            mymsg: this.msg,
        }
    },
    watch:{
        msg(val){
            this.mymsg = val;
        }
    },
    methods: {
        commit() {
            this.$emit('eve', '感谢老爸,收到转账' + this.mymsg + '元')
        }
    },
   

}
</script>

<style>
</style>